import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/goods',
      children: [
        {
          path: 'goods',
          name: 'goods',
          component: () => import('../View/tab/goods.vue'),
        },
        {
          path: 'seller',
          name: 'seller',
          component: () => import('../View/tab/seller.vue'),
        },
        {
          path: 'ratings',
          name: 'ratings',
          component: () => import('../View/tab/ratings.vue'),
        },
      ],
    },
  ],
})

export default router
